package com.oneby.util;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author bohao.wang
 * @Date 2021/3/30 18:32
 */
public class PowerMockUtil {

    public int testMethodParamMock(List list) {
        return list.size();
    }

    public int testInternalNewInstance(int size) {
        ArrayList list = new ArrayList(size);
        return list.size();
    }

    public final String testFinalMethod() {
        return "Oneby";
    }

    public static String testStaticMethod() {
        return "Oneby";
    }

    private String testPrivateMethod(String name) {
        return name;
    }

    public String testSystemMethod(String key) {
        return System.getProperty(key);
    }

}
